import { request } from "./request"

//旅游推荐官申请
export const registration = (data = {}) => {
    return request('post', '/wechat/registration', data);
}

//用户已认领
export const listMyVillage = (data = {}) => {
  return request('get', '/experienceOfficer/userVillage/listMyVillage', data);
}

//待认领列表
export const listTownShipVillage = (data = {}) => {
  return request('get', '/experienceOfficer/userVillage/listTownShipVillage', data);
}

//一键认领
export const userClaim = (data = {}) => {
  return request('post', '/experienceOfficer/userVillage/userClaim', data);
}

//地区数据
export const getMgyArea = (data = {}) => {
  return request('get', '/register/getMgyArea', data);
}

//乡村详情
export const getVillageMsg = (data = {}) => {
  return request('get', '/experienceOfficer/userVillage/getVillageMsg', data);
}

//更新乡村
export const updateVillageMsg = (data = {}) => {
  return request('post', '/experienceOfficer/userVillage/updateVillageMsg', data);
}

//获取乡村景点 民宿 饭店 特产 信息 带上缺少的信息
export const getVillageDetail = (data = {}) => {
  return request('get', '/experienceOfficer/userVillage/getVillageDetail', data);
}

//景区详情
export const getVillageLandscapes = (data = {}) => {
  return request('get', '/experienceOfficer/userVillage/getVillageLandscapes', data);
}

//更新景区
export const updateVillageLandscapes = (data = {}) => {
  return request('post', '/experienceOfficer/userVillage/updateVillageLandscapes', data);
}

//饭店详情
export const getHotelMsg = (data = {}) => {
  return request('get', '/experienceOfficer/userVillage/getHotelMsg', data);
}

//更新饭店
export const updateHotelMsg = (data = {}) => {
  return request('post', '/experienceOfficer/userVillage/updateHotelMsg', data);
}

//特产分类
export const getGoodsClassify = (data = {}) => {
  return request('get', '/experienceOfficer/userVillage/getGoodsClassify', data);
}

//特产详情
export const getGoodsMsg = (data = {}) => {
  return request('get', '/experienceOfficer/userVillage/getGoodsMsg', data);
}

//更新特产
export const updateGoodsMsg = (data = {}) => {
  return request('post', '/experienceOfficer/userVillage/updateGoodsMsg', data);
}

//民宿详情
export const getHostelMsg = (data = {}) => {
  return request('get', '/experienceOfficer/userVillage/getHostelMsg', data);
}

//更新民宿
export const updateHostelMsg = (data = {}) => {
  return request('post', '/experienceOfficer/userVillage/updateHostelMsg', data);
}
